<template>
  <div>
    <div>Home</div>
    <button @click="$router.back()">返回首页</button>
    <NuxtLink to="/home/message?name=jack">Message</NuxtLink>
    <NuxtLink to="/home/123">详情</NuxtLink>
    <!-- <NuxtLink to="/home/465">详情</NuxtLink> -->

    <p>{{ counter }}</p>
    <button @click="counter++">更新</button>
  </div>
</template>

<script lang="ts" setup>
useHead({
  title: "首页",
});

definePageMeta({
  middleware: ["test"],
});

const counter = useCounter();
</script>

<style scoped></style>
